const express = require('express');
const path = require('path')
const app = express();
const fs = require('fs')

app.set('views','doc') //设置查找路径
app.set('view engine','ejs') //设置默认后缀
app.engine('html',require('ejs')._express) //如果是html后缀，需要安装ejs的规则处理
app.get('/',function(req,res,next){
    res.render('hello.ejs',{name:'ikki'})
})

app.listen(3000, function () {
    console.log('server start 3000')
})
